﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace SpecF
{
    public class Next<T>
    {
        internal List<string> ExpressionInfromatiom
        {
            get;
            set;
        }

        internal Expression<Func<T, bool>> Check
        {
            get;
            set;
        }

        internal Action<T>[] Events
        {
            get;
            set;
        }

        internal SpecF<T> Spec
        {
            get;
            set;
        }

        public Next()
        {
            ExpressionInfromatiom = new List<string>();
        }

        public SpecF<T> Then(params Action<T>[] destination)
        {
            this.Events = destination;
            return this.Spec;
        }
    }
}